package com.cplh.sharding.demo.response;

/**
 * @author: Jenkin.K
 * @since: 2022/10/25
 * @version: 1.0
 * @description:
 **/
public enum MessageCodeEnum {
    SUCCESS(200, "成功"),
    ERROR(500, "系统内部错误"),
    SYS_OP_FAILED(501, "操作失败,请重试"),
    UNKNOWN(999, "未知错误"),


    REPEAT_REQUEST(1400, "重复请求"),
    PARAM_TYPE_ERROR(1401, "参数类型错误"),
    //PARAM_ILLEGAL(1402, "非法参数"),
    PARAM_EMPTY(1403, "参数不能为空"),
    PARAM_TOO_LONG(1404, "参数长度超出限制"),
    PARAM_ERROR(1405, "参数错误"),

            ;


    private int code;
    private String message;

    MessageCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
